package com.zxl.study.entities;

import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "meta_database")
public class MetaDatabase {
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 数据库类型(通用字典表type(dbType))
     */
    @Column(name = "TYPE")
    private String type;

    /**
     * 数据库jdbc url
     */
    @Column(name = "JDBC_URL")
    private String jdbcUrl;

    /**
     * 数据库名字
     */
    @Column(name = "NAME")
    private String name;

    /**
     * 用户名
     */
    @Column(name = "user")
    private String user;

    /**
     * 密码
     */
    @Column(name = "PASSWD")
    private String passwd;

    /**
     * 模式名（pg,oracle类型用，多个逗号分隔）
     */
    @Column(name = "SCHEMA_NAME")
    private String schemaName;

    /**
     * 是否已删除(0否1是)
     */
    @Column(name = "IS_DELETED")
    private Boolean isDeleted;

    /**
     * 创建人
     */
    @Column(name = "CREATE_PERSON")
    private String createPerson;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;

    /**
     * 更新人
     */
    @Column(name = "UPDATE_PERSON")
    private String updatePerson;

    /**
     * 更新时间
     */
    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    @Column(name = "MANAGED_TABLES")
    private String managedTables;
}